package com.forenow.demo6;

public class PersonImpl extends Person {

    @Override
    public boolean login(String name, int password) {
        return false;
    }

    @Override
    public boolean insert(String name, int password) {
        return false;
    }

    @Override
    public Person getPersonById(String id) {
        return null;
    }

    @Override
    public Person[] selectAll() {
        return new Person[0];
    }

    @Override
    public int deleteById(int id) {
        return 0;
    }

    public static void main(String[] args) {
        Person person = new PersonImpl();
        boolean isRight = person.login("tom",123456);
        if (isRight){
            System.out.println("登录成功");
        }else{
            System.out.println("登录失败");
        }

        int i = person.deleteById(100);
        if (i==1){
            System.out.println("删除成功");
        }else{
            System.out.println("删除失败");
        }
    }
}
